package top.tupobi.zing.network;

public class HttpConfig {

    /**
     * 基础配置
     */
    public static final int OK = 0;

    public static final int FAIL = -1;

    public static final int HTTP_TIME_OUT = 5;

    public static final int SOCKET_TIME_OUT = 3000;

    /**
     * ip 测试环境
     */
//    public static final String IP = "192.168.43.194";// 热点
//    public static final String HTTP_IP = "10.3.14.58";// gs
//    public static final String IP = "10.0.0.127";// wifi

//    public static final String SOCKET_IP = "10.3.14.58";
//    public static final String HOST = "http://" + HTTP_IP + "/";

    /**
     * ip 正式环境
     */
//    public static final String HTTP_IP = "www.tupobi.top";
//    public static final String SOCKET_IP = "120.78.191.148";
//    public static final String HOST = "https://" + HTTP_IP + "/";


    public static final String HTTP_IP = "173.82.238.111";
    public static final String SOCKET_IP = "173.82.238.111";
    public static final String HOST = "http://" + HTTP_IP + "/";


    public static final String BASE_URL = HOST + "zing/android/api/";

    /**
     * // TODO
     * socket 端口号，设置安全组规则！！
     */
    public static final int SOCKET_PORT = 63231;

    /**
     * 图片地址
     */
    public static final String PIC_ROOT = HOST + "zing/";

    /**
     * 下面是API path
     */
    public static final String REGISTER = "user/register";

    public static final String LOGIN = "user/login";

    public static final String UPLOAD_NICKNAME = "user/updateNickName";

    public static final String UPLOAD_AVATAR = "user/uploadAvatar";

    public static final String GET_USER_INFO = "user/getUserInfo";

    public static final String HAS_NEW_FRIEND = "invite/hasNewFriend";

    public static final String GET_FRIEND_APPLY_LIST = "invite/getFriendApplyList";

    public static final String UPDATE_INVITE_STATUS = "invite/updateInviteStatus";

    public static final String GET_FRIEND_LIST = "friend/getFriendList";

    public static final String GET_MESSAGE = "message/getMessage";

    public static final String SAVE_LOCATION = "user/saveLocation";

}
